import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/data-clean',
    component: RouterView,
    meta: { title: '数据清洗' },
    redirect: '/data-clean/list',
    children: [
      {
        path: '/data-clean/list',
        component: () => import('@/views/online-lab/data-clean/list/index.vue')
      },
      {
        path: '/data-clean/detail/:id',
        meta: { title: '数据清洗-详情' },
        component: () => import('@/views/online-lab/data-clean/detail/index.vue')
      },
      {
        path: '/data-clean/edit',
        meta: { title: '数据清洗-表单' },
        component: () => import('@/views/online-lab/data-clean/edit/index.vue')
      }
    ]
  }
]

export default routes
